package com.wmyg.tracker.sdk;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ThreadStateChecker {

    @Autowired
    UltimateManager fabricDao;
    public final static long TWO_Minute =  2 * 60 * 1000;

    @Scheduled(fixedRate=TWO_Minute)
    public void fixedRateJob(){
        fabricDao.checkTheadState();
    }
}
